package com.richfit.barcodesystem_cczt.utils.constant;

import com.richfit.barcodesystem_cczt.activitis.model.main.IncrementalEntity;
import com.richfit.barcodesystem_cczt.activitis.model.users.UserInfo;

import java.util.List;

/**
 * Created by monday on 2016/11/13.
 */

public class Global {

    public final static String RETURN_SUCCESS_CODE = "S";
    /*App是否第一次启动*/
    public final static String IS_APP_FIRST_KEY = "is_app_first";
    public final static String OPEN_LOCATION_TYPE = "Y";
    /*主模块编码*/
    //物资验收
    public static final String WZYS = "100";
    //物资入库
    public static final String WZRK = "101";
    //物资出库
    public static final String WZCK = "102";
    //物资退库
    public static final String WZTK = "103";
    //物资移库
    public static final String WZYK = "104";
    //物资退货
    public static final String WZTH = "105";
    //物资盘点
    public static final String WZPD = "106";
    //仓位调整
    public static final String CWTZ = "107";
    public static final String DJCX = "108";
    //信息查询
    public static final String XXCX = "109";
    //代管入库
    public static final String DGRK = "110";
    //代管出库
    public static final String DGCK = "111";
    public static final String SETTING = "112";
    //离线模式
    public static final String L_LOADDATA = "113";
    public static final String L_UPLOADDATA = "114";
    //代管移库
    public static final String DGYK = "115";
    //上下架处理
    public static final String SXCL = "116";
    public static final String VSCX = "117";
    public static final String KFXJ = "118";
    //上架单据查询
    public static final String REF_CX = "119";
    /*物资取样*/
    public static final String WZQY = "120";
    //直达料管理
    public static final String ZDLGL = "121";
    //人带料出库
    public static final String RDLCK = "122";
    //用户选择的模式
    public static final int ONLINE_MODE = 0x0;
    public static final int OFFLINE_MODE = 0x1;
    /*全局日期格式*/
    public static final String GLOBAL_DATE_PATTERN_TYPE1 = "yyyyMMdd";
    public static final String GLOBAL_DATE_PATTERN_TYPE2 = "yyyy MM dd";
    public static final String GLOBAL_DATE_PATTERN_TYPE3 = "yyyy-MM-dd";
    public static final String GLOBAL_DATE_PATTERN_TYPE4 = "yyyy/MM/dd";
    /*基础数据的key*/
    public static final String ID_KEY = "id";
    public static final String CODE_KEY = "code";
    public static final String NAME_KEY = "name";
    public static final String PARENTID_KEY = "parentId";
    public static final String ORGLEVEL_KEY = "orgLevel";
    public static final String STORAGENUM_KEY = "storageNum";
    public static final String SORT_KEY = "sort";
    public static final String VALUE_KEY = "value";
    public static final String START_DATE_KEY = "startDate";
    public static final String END_DATE_KEY = "endDate";
    public static final String WORK_ID = "work_id";
    public static final String INV_ID = "inv_id";
    public static final String EXTRA_LOCATION_LIST_KEY = "extra_location_list";
    public static final String EXTRA_REC_LOCATION_LIST_KEY = "extra_rec_location_list";
    public static final String EXTRA_BATCH_FLAG_KEY = "extra_batch_flag";
    public static final String EXTRA_QUANTITY_KEY = "extra_quantity";
    public static final String EXTRA_REF_DETAIL_KEY = "extra_line_num";
    public static final String EXTRA_LOCATION_KEY = "extra_location";
    public static final String EXTRA_INV_ID_KEY = "extra_inv_id";
    public static final String EXTRA_WORK_ID_KEY = "extra_work_id";
    public static final String EXTRA_INV_CODE_KEY = "extra_inv_code";
    public static final String EXTRA_LOCATION_ID_KEY = "extra_location_id";
    public static final String EXTRA_MATERIAL_NUM_KEY = "extra_material_num";
    public static final String EXTRA_MATERIAL_ID_KEY = "extra_material_id";
    public static final String EXTRA_MATERIAL_DESC_KEY = "extra_material_desc";
    public static final String EXTRA_MATERIAL_EDESC_KEY = "extra_material_edesc";
    public static final String EXTRA_SPEC_MODEL_KEY = "extra_spec_model";
    public static final String EXTRA_UNIT_KEY = "extra_unit";
    public static final String EXTRA_MATERIAL_GROUP_KEY = "extra_material_group";
    public static final String EXTRA_INV_QUANTITY_KEY = "extra_inv_quantity";
    public static final String EXTRA_BIZ_TYPE_KEY = "extra_biz_type";
    public static final String EXTRA_REF_TYPE_KEY = "extra_ref_type";
    public static final String EXTRA_LOCATION_TYPE_KEY = "location_type";
    public static final String EXTRA_REC_LOCATION_TYPE_KEY = "rec_location_type";
    public static final String EXTRA_DEVICE_ID_KEY = "extra_device_id";
    public static final String EXTRA_REC_LOCATION_KEY = "extra_rec_location";
    public static final String EXTRA_REC_BATCH_FLAG_KEY = "extra_rec_batch_flag";
    public static final String EXTRA_TOTAL_QUANTITY_KEY = "extra_total_quantity";
    /*特殊库存标识*/
    public static final String EXTRA_SPECIAL_INV_FLAG_KEY = "extra_special_inv_flag_key";
    public static final String EXTRA_SPECIAL_INV_NUM_KEY = "extra_special_inv_num_key";
    /*制造商*/
    public static final String EXTRA_MANUFUCTURER_KEY = "extra_manufucturer";
    /*抽检数量*/
    public static final String EXTRA_SAMPLE_QUANTITY_KEY = "extra_sample_quantity";
    /*完好数量*/
    public static final String EXTRA_QUALIFIED_QUANTITY_KEY = "extra_qualified_quantity";
    /*损坏数量*/
    public static final String EXTRA_DAMAGED_QUANTITY_KEY = "extra_damaged_quantity";
    /*送检数量*/
    public static final String EXTRA_INSPECTION_QUANTITY_KEY = "extra_inspection_quantity";
    /*锈蚀数量*/
    public static final String EXTRA_RUST_QUANTITY_KEY = "extra_rust_quantity";
    /*变质*/
    public static final String EXTRA_BAD_QUANTITY_KEY = "extra_bad_quantity";
    /*其他数量*/
    public static final String EXTRA_OTHER_QUANTITY_KEY = "extra_other_quantity";
    /*包装情况*/
    public static final String EXTRA_PACKAGE_KEY = "extra_package";
    /*质检单号*/
    public static final String EXTRA_QM_NUM_KEY = "extra_qm_num";
    /*索赔单号*/
    public static final String EXTRA_CLAIM_NUM_KEY = "extra_claim_num";
    /*合格证*/
    public static final String EXTRA_CERTIFICATE_KEY = "extra_certificate";
    /*说明书*/
    public static final String EXTRA_INSTRUCTIONS_KEY = "extra_instructions";
    /*质检证书*/
    public static final String EXTRA_QM_CERTIFICATE_KEY = "extra_qm_certificate";
    /*检验结果*/
    public static final String EXTRA_INSPECTION_RESULT_KEY = "extra_inspection_result";
    /*fragment的信息是否已经初始化完毕，只有用户进入过在线模式系统该值才为true*/
    public static final String IS_INITED_FRAGMENT_CONFIG_KEY = "is_inited_fragment_config";
    public static final String IMAGE_DEFAULT_FORMAT = ".jpeg";
    public static final String EXTRA_TAKE_PHOTO_TYPE = "extra_take_photo_type";
    public static final String EXTRA_TITLE_KEY = "extra_title";
    public static final String EXTRA_FRAGMENT_TYPE_KEY = "extra_fragment_type";
    public static final String EXTRA_MODULE_CODE_KEY = "extra_module_code";
    public static final String EXTRA_COMPANY_CODE_KEY = "extra_company_code";
    public static final String EXTRA_REF_NUM_KEY = "extra_ref_num";
    public static final String EXTRA_REF_LINE_NUM_KEY = "extra_ref_line_num";
    public static final String EXTRA_REF_LINE_ID_KEY = "extra_ref_line_id";
    public static final String EXTRA_POSITION_KEY = "extra_position";
    public static final String EXTRA_IS_LOCAL_KEY = "extra_is_local";
    public static final String EXTRA_RETURN_QUANTITY_KEY = "extra_return_quantity";
    public static final String EXTRA_PROJECT_TEXT_KEY = "extra_project_text";
    public static final String EXTRA_MOVE_CAUSE_DESC_KEY = "extra_move_cause_desc";
    public static final String EXTRA_MOVE_CAUSE_KEY = "extra_move_cause";
    public static final String EXTRA_DECISION_CAUSE_KEY = "extra_decision_cause";
    public static final String EXTRA_CAPTION_KEY = "extra_caption";
    public static final String EXTRA_UPLOAD_MSG_KEY = "extra_upload_msg";
    public static final String EXTRA_MODE_KEY = "extra_mode";
    public static final String EXTRA_REMARK_KEY = "extra_remark";
    public static final String EXTRA_PACKAGE_MANNER = "extra_package_manner";
    public static final String EXTRA_LENGTH_KEY = "extra_length";
    public static final String EXTRA_WIDTH_KEY = "extra_width";
    public static final String EXTRA_HEIGHT_KEY = "extra_height";
    public static final String EXTRA_VOLUME_KEY = "extra_volume";
    public static final String EXTRA_SINGLE_NET_WEIGHT_KEY = "extra_single_net_weight";
    public static final String EXTRA_GROSS_WEIGHT_KEY = "extra_gross_weight";
    public static final String EXTRA_REC_BOX_NO_KEY = "extra_rec_box_no";
    public static final String EXTRA_BOX_NO_KEY = "extra_box_no";
    public static final String EXTRA_REF_MATERIAL_ACT_KEY = "extra_material_act_quantity";
    /*扫描物料和批次位置*/
    public static final int MATERIAL_POS = 2;
    public static final int BATCHFALG_POS = 12;
    public static final int LOCATION_POS = 0;
    public static final int LOCATION_TYPE_POS = 1;
    /*料签*/
    public static final int MATERIAL_POS_L = 4;
    public static final int BATCHFALG_POS_L = 6;
    public static final String SUPPLIER_DATA = "supplier";
    public static final String COST_CENTER_DATA = "costCenter";
    public static final String PROJECT_NUM_DATA = "projectNum";
    public static final String GL_ACCOUNT_DATA = "GLAccount";
    public static final String INTERNAL_ORDER_DATA = "InternalOrder";
    //大连石化客户
    public static final String CUSTOMER_DATA = "customer";
    //大连石业务范围
    public static final String BIZ_RANGE_DATA = "bizRange";
    //移动原因
    public static final String MOVE_REASON_DATA = "moveReason";
    //大连石化利润中心
    public static final String PROFIT_CENTER_DATA = "profitCenter";
    public static final int HEADER_FRAGMENT_INDEX = 0x0;
    public static final int DETAIL_FRAGMENT_INDEX = 0x1;
    public static final int COLLECT_FRAGMENT_INDEX = 0x2;
    //采集的数据已经过账，但是还未上架
    public static final String STATE_TRANSFER_TO_BCS_DONE = "1";
    //直达料入库 单项
    public static final String PDA_BIZ_TYPE_SINGLE_RK = "119";
    //直达料入库 整项
    public static final String PDA_BIZ_TYPE_ALL_RK = "118";
    //直达料出库 整项
    public static final String PDA_BIZ_TYPE_ALL_CK = "217";
    //直达料出库 单项
    public static final String PDA_BIZ_TYPE_SINGLE_CK = "218";
    //人带料出库
    public static final String PDA_BIZ_TYPE_WITH_MAT_CK = "219";
    //原来的批量出库 后改为出库确认
    public static final String PDA_BIZ_TYPE_CK_B = "217B";
    //批量发料
    public static final String PDA_BIZ_TYPE_CK_L = "217L";

    public static final int NONE_COLLECT = 0;
    public static final int PARTUAL_COLLECT = 1;
    public static final int ALL_COLLECT = 2;
    /**
     * 仓库信息
     */
    public static List<IncrementalEntity> incrementalInfoList;
    //用户全部信息
    public static UserInfo USERINFO;
    public static String USER_ID;
    public static String LOGIN_ID;
    public static String USER_NAME;
    public static String COMPANY_ID = "cczt";
    public static String COMPANY_CODE = "cczt";
    public static String MAC_ADDRESS;
    public static String AUTH_ORG;
    public static String DBSOURCE;
    public static String BATCHMANAGERSTATUS;
    /**
     * 1.表示barcode
     * 2.IM，
     * 3.WM
     */
    public static String WMFLAG;
    public static int CHILD_NODE_MAX_ID = 100000;
    public static int MAX_PATCH_LENGTH = 200;
}
